package IO;

import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;

public class IODemo11 {
    public static void main(String[] args) throws IOException {
        try(Writer writer = new FileWriter("IODemo11.txt");){
            String s = "天王盖地虎";
            writer.write(s);
        }

        try(Writer writer = new FileWriter("./test.txt",true);){
            String s = "你好啊";
            writer.write(s);
        }
    }
}
